//节点初始化参数
function initNodeProp(type,name,id) {
    if(type == 'common'){
        return {
            id: id,
            type: type,
            name: name,
            mode: 'default', // default，simple
            nodeDataBase: {},
            style: {
                toolbar: {
                // isVisible: false,
                position: 'top',
                showIcon: false,
                offset: 10
                },
                handles: [
                {position: 'left', opacity: 1, type: 'target', style: ''},
                {position: 'right', opacity: 1, type: 'source', style: ''},
                {position: 'top', opacity: 0, type: 'target', style: ''},
                {position: 'bottom', opacity: 0, type: 'source', style: ''},
                ],
                extendHandles: []
            },
        }
    }else if(type == 'when'){
        return {
            id: id,
            type: type,
            name: name,
            mode: 'default', // default，simple
            nodeDataWhen: {},
            style: {
                handles: [
                    {position: 'left', opacity: 1, type: 'target', style: ''},
                    {position: 'right', opacity: 1, type: 'source', style: ''},
                ],
            }
        }
    }
    return {}
}


function initCommonNodeProp() {
    return initNodeProp('common','普通组件','');
}

function initWhenNodeProp() {
    return initNodeProp('when','并行分组','');
}


export {
    initCommonNodeProp, initNodeProp, initWhenNodeProp
};

